package io.renren.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.entity.SysProductEntity;
import io.renren.entity.SysProductSkuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-10 08:55:53
 */
@Mapper
public interface SysProductDao extends BaseMapper<SysProductEntity> {
    List<SysProductEntity> retailInventories(Integer retailId);

    List<Integer> queryByProductAndSubRetail(@Param("productId") Integer productId, @Param("level") Integer level);

    IPage<SysProductEntity> queryProducts(IPage<SysProductSkuEntity> page, @Param("merchantId") Integer merchantId, @Param("productName") String productName);

    SysProductSkuEntity selectByIds(String orderId);
}
